<template>
	<view class="agreement">
		<view class="" style="width: 97%;">
			<image :src="image+data.imgUrl" mode="widthFix" style="margin-bottom: 20rpx;width: 100%;" ></image>
		</view>
		<u-parse :html="data.details"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				data: {},
				image: this.$base.smallimgUrl,
			};
		},
		onLoad(el) {
			this.getAgreement(el.type)
		},
		methods: {
			getAgreement(type){
				let that = this
				that.$api.rollindex('INTRODUCTION').then(res => {
					that.data = res.data.data
					console.log(that.data,'that.data')
				})
			}
		}
	}
</script>

<style lang="less">
	.agreement{
		padding: 30rpx;
		view{
			// .image{
			// 	width: 100%;
			// 	height: 100%;
			// 	margin-bottom: 30rpx;
			// }
		}
	}
</style>
